/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package polandballgame;
import javax.swing.*;

/**
 *
 * @author POed
 */
public class PolandballGame {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        // data:
        Engine engine;
        GameView gameView;
        StatusBar statusBar;
        JFrame frame;
        
        // engine init
        engine = new Engine();
        
        // frame and view
        gameView = new GameView();
        gameView.setSize(1200, 680);
        gameView.setVisible(true);
        gameView.addKeyListener(gameView);
        gameView.setFocusable(true);
        gameView.requestFocus();
        
        statusBar = new StatusBar();
        statusBar.setSize(1200, 100);
        statusBar.setLocation(0, gameView.getHeight());
        statusBar.setVisible(true);
        
        engine.setView(gameView);
        engine.setStatusBar(statusBar);
        
        frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(1200, 780);
        frame.setVisible(true);
        frame.setResizable(false);
        frame.add(statusBar);
        frame.add(gameView);
        frame.repaint();
    }
}
